<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>初始化lodop</title>
</head>
<body>
<a href="javascript:CheckIsInstall()">查看是否安装控件</a>
<script language="javascript" src="${path}/static/lodop/LodopFuncs.js"></script>
<!-- <object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
       <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object> -->
<!--var LODOP=getLodop();创建时会自动创建以上代码  -->
<script type="text/javascript">

function CheckIsInstall() {	 
	try{ 
	     var LODOP=getLodop();
	     LODOP.SET_PRINT_PAGESIZE(2, 0, 0,"A4");//设置A4纸打印
		if (LODOP.VERSION) {
			 if (LODOP.CVERSION)
			 alert("当前有C-Lodop云打印可用!\n C-Lodop版本:"+LODOP.CVERSION+"(内含Lodop"+LODOP.VERSION+")"); 
			 else
			 alert("本机已成功安装了Lodop控件！\n 版本号:"+LODOP.VERSION); 

		};
	 }catch(err){ 
		 } 
}; 
</script>
</body>
</html>